import request from '@/router/axios';
import {downloadExcel} from '@/router/axios';
import {formatCondition} from '@/util/util'; 
//根据用户名查询单条查询
export const queryBizSixteenUserInfoByUserName = (params) => {
  params.head.transCode = 'queryBizSixteenUserInfoByUserName';
  return request({
    url: '/biz/sixteen/bizSixteenUserInfo/queryBizSixteenUserInfoByUserName',
    method: 'post',
    data: params
  })
}
//单条查询
export const queryBizSixteenUserInfo = (params) => {
  params.head.transCode = 'queryBizSixteenUserInfo';
  return request({
    url: '/biz/sixteen/bizSixteenUserInfo/queryBizSixteenUserInfo',
    method: 'post',
    data: params
  })
}
//多条列表查询，支持条件查询
export const queryBizSixteenUserInfoListPage = (params) => {
  params.head.transCode = 'queryBizSixteenUserInfoListPage';
  return request({
    url: '/biz/sixteen/bizSixteenUserInfo/queryBizSixteenUserInfoListPage',
    method: 'post',
    data: params
  })
}
//新增单条记录
export const saveBizSixteenUserInfo = (params) => {
  params.head.transCode = 'saveBizSixteenUserInfo';
  return request({
    url: '/biz/sixteen/bizSixteenUserInfo/saveBizSixteenUserInfo',
    method: 'post',
    data: params
  })
}
//新增多条记录
export const saveBizSixteenUserInfoList = (params) => {
  params.head.transCode = 'saveBizSixteenUserInfoList';
  return request({
    url: '/biz/sixteen/bizSixteenUserInfo/saveBizSixteenUserInfoList',
    method: 'post',
    data: params
  })
}
//新增或修改单条记录
export const saveOrUpdateBizSixteenUserInfo = (params) => {
  params.head.transCode = 'saveOrUpdateBizSixteenUserInfo';
  return request({
    url: '/biz/sixteen/bizSixteenUserInfo/saveOrUpdateBizSixteenUserInfo',
    method: 'post',
    data: params
  })
}


//新增或修改单条记录
export const saveOrUpdateBizSixteenUserInfoList = (params) => {
  params.head.transCode = 'saveOrUpdateBizSixteenUserInfoList';
  return request({
    url: '/biz/sixteen/bizSixteenUserInfo/saveOrUpdateBizSixteenUserInfoList',
    method: 'post',
    data: params
  })
}

//修改单条记录
export const updateBizSixteenUserInfo = (params) => {
  params.head.transCode = 'updateBizSixteenUserInfo';
  return request({
    url: '/biz/sixteen/bizSixteenUserInfo/updateBizSixteenUserInfo',
    method: 'post',
    data: params
  })
}

//删除单条记录
export const deleteBizSixteenUserInfo = (params) => {
  params.head.transCode = 'deleteBizSixteenUserInfo';
  return request({
    url: '/biz/sixteen/bizSixteenUserInfo/deleteBizSixteenUserInfo',
    method: 'post',
    data: params
  })
}

//删除多条记录
export const deleteBizSixteenUserInfoList = (params) => {
  params.head.transCode = 'deleteBizSixteenUserInfoList';
  return request({
    url: '/biz/sixteen/bizSixteenUserInfo/deleteBizSixteenUserInfoList',
    method: 'post',
    data: params
  })
}
//导出excel
export const exportBizSixteenUserInfoExcel = (params) => {
  downloadExcel({
    url: '/biz/sixteen/bizSixteenUserInfo/excelDownload/exportBizSixteenUserInfoExcel',
    method: 'get',
    data: 
    {
      tenantId: params.head.tenantId,
      orders:'',
      condition: formatCondition(params.body.sqlCondition)
    }
  })
}
